package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.Equipment;
import com.nbsaas.boot.manufacturing.api.domain.response.EquipmentResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 设备-实体对象转化成响应对象
*/

public class EquipmentResponseConvert  implements Converter<EquipmentResponse,Equipment> {

    @Override
    public EquipmentResponse convert(Equipment source) {
        EquipmentResponse  result = new  EquipmentResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

